// https://docs.cypress.io/api/table-of-contents

// 测试集
describe('My First Test', () => {
    // 表示一个测试
    it('添加', () => {
      cy.visit('/')
      cy.get('.table_con > .el-button').click()
      // cy.get('.dialog-footer > .el-button--primary > span').click()
      cy.get('.el-form-item__content > .el-button--primary').click()
      cy.get(':nth-child(1) > .el-form-item__content > .el-input > .el-input__inner').type('招财')
      cy.get(':nth-child(2) > .el-form-item__content > .el-input > .el-input__inner').type('进宝')
      cy.get('.el-form-item__content > .el-button--primary').click()
    
      // cy.should('include',"上海市普陀区")
    })
    // 删除
    it('删除某一个', ()=>{
      cy.get('tbody  :nth-child(1)  .el-table_1_column_1 [type="checkbox"]').check({force:true})
      cy.get('.el-card__body > :nth-child(2) > :nth-child(2)').click()
    })
    it('全部删除', ()=>{
      cy.get('.el-checkbox').first().click({force:true})
      cy.get('.el-card__body > :nth-child(2) > :nth-child(2)').click()
    })
  })